// 获取讲台学生成绩接口
import axios from "axios";

export default function (sessionId) {
    return axios({
        method: "get",
        url: "/api/selections/score",
        headers: {
            Authorization: localStorage.getItem("Authorization")
        },
        params:sessionId
    }).then(response => {
        return {
            result: true,
            data: response.data,
            scores: response.data.scores
        }
    }).catch(error => {
        return {
            result: false,
            msg: error.response.data.msg
        }
    })
}
